package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {
    // 根据菜品id查询套餐id，会查询到多个套餐id
    public List<Long> getSetmealIdsByDishIds(List<Long> dishIds);

    // 批量插入数据
    public void insertSetmealDishBatch(List<SetmealDish> setmealDishes);

    public void deleteBySetmealId(Long setmealId);

    public List<SetmealDish> getSetmealDishesBySetmealId(Long setmealId);

}
